from microbit import *
from coroutine import *
import time

#当开机时
display.show(Image.HAPPY)
time.sleep(1)

def on_forever():
    display.scroll('Hello')
    time.sleep(1)
    display.show(Image.MUSIC_QUAVERS)
    time.sleep(1)
add_event('forever', on_forever)

coroutine_init()
